import java.util.*;

/**
 * @author LKQ
 * @date 2022/6/14 19:39
 * @description
 */
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNext()) {
            int cntP = 0, cntN = 0;
            double sum = 0;
            while (sc.hasNext()) {
                int n = sc.nextInt();
                if (n > 0) {
                    cntP++;
                    sum += n;
                }
                if (n < 0) {
                    cntN++;
                }
            }
            double ans = cntP == 0 ? 0.0 : sum / cntP;
            System.out.println(cntN);
            System.out.println(String.format("%.1f", ans));
        }
    }
}
